package dto;

import java.util.ArrayList;
import java.util.List;

public class QuestionDTO {
	private int _id;
	private String _content;
	private int _titleID;
	public List<ScoreDTO> lstScore;
	
	public QuestionDTO() {
		this._id = 0;
		this._content = "";
		this.lstScore = new ArrayList<ScoreDTO>();
	}
	
	public QuestionDTO(QuestionDTO question) {
		this._id = question._id;
		this._content = question._content;
		this._titleID = question._titleID;
		this.lstScore = new ArrayList<ScoreDTO>();
	}
	
	public QuestionDTO(int id, String content, int titleID) {
		this._id = id;
		this._content = content;
		this._titleID = titleID;
		this.lstScore = new ArrayList<ScoreDTO>();
	}
	
	public void update(QuestionDTO question) {
		this._content = question._content;
		this._titleID = question._titleID;
	}
	
	public void setID(int id) {
		this._id = id;
	}
	public void setContent(String content) {
		this._content = content;
	}
	public void setTitleID(int titleID) {
		this._titleID = titleID;
	}
	
	public int getID() {
		return this._id;
	}
	public String getContent() {
		return this._content;
	}
	public int getTitleID() {
		return this._titleID;
	}
}
